package com.hsbc.dev.teamo4.sms.sm.service;

import com.hsbc.dev.teamo4.sms.common.base.IEntityService;
import com.hsbc.dev.teamo4.sms.common.utils.data.TreeNode;
import com.hsbc.dev.teamo4.sms.sm.po.Menu;

/**
 * @author:Cady
 * @version:
 * @Project: permission_manage
 * @Package: com.hsbc.dev.teamo4.sms.sm.service
 * @Description:
 * @Date date: 2018-07-26
 */
public interface IMenuService extends IEntityService<Menu> {
    /**
     * @Description set menu.isEnable to 0
     * @Date: 15:28 2018-07-27
     * @Param id
     * @return void
     */
    void deleteMenuById(String id);

    /**
     * @Description build the menu tree
     * @Date: 15:29 2018-07-27
     * @Param
     * @return com.hsbc.dev.teamo4.sms.common.utils.data.TreeNode<com.hsbc.dev.teamo4.sms.sm.po.Menu>
     */
    TreeNode<Menu> getMenuTree();

    /**
     * checkExist
     * @param parentId
     * @param menuName
     * @param menuId
     * @return boolean
     */
    boolean checkExist(String parentId,String menuName,String menuId);
}
